package com.rapid.auth;

import feign.Contract;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;

@EnableDiscoveryClient
@EnableAuthorizationServer
@SpringBootApplication
@FeignClient
@ComponentScan(value = {"com.rapid"})
public class RapidAuthApplication{

    public static void main(String[] args) {
        SpringApplication.run(RapidAuthApplication.class, args);
    }

    @Bean
    public Contract feignContract() {
        return new feign.Contract.Default();
    }

}
